package com.example.jurisdiction.Mapper;

import entity.PageBean;
import entity.jurisdiction;
import entity.role;
import entity.sys_user_info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface pageMapper {
    //用户

    public int getUserCounts(@Param("name") String name);
    public List<sys_user_info> getAllUser(PageBean p)throws Exception;

    public List<sys_user_info> getAllUsers()throws Exception;

    //角色


    public int getRowCounts(@Param("name") String name);

    public List<role> getAllRole(PageBean p)throws Exception;

    public List<role> getAllRoles() throws Exception ;

    //菜单
    public int getRowjurisdiction(@Param("name") String name);

    public List<jurisdiction> getAlljurisdiction(PageBean p)throws Exception;

    public List<jurisdiction> getAlljurisdictions() throws Exception ;
}
